#pragma once
#include "header.h"

class Champions
{
public:
	TCHAR name[20];
	int steps;
	int time;
	Champions()
	{
		lstrcpy(name, TEXT(""));
		steps = 0;
		time = 0;
	}
	Champions(TCHAR* n, int s, int t)
	{
		lstrcpy(name, n);
		steps = s;
		time = t;
	}
};

class Game 
{
public:
	Game (void);
	static Game* ptr;
	static BOOL CALLBACK DlgProc(HWND hWnd, UINT mes, WPARAM wp, LPARAM lp);
	BOOL Cls_OnInitDialog (HWND hWnd, HWND hWndFocus, LPARAM lp);
	void Cls_OnClose (HWND hWnd);
	void Cls_OnCommand (HWND hWnd, int id, HWND hWndCtl, UINT codeNotify);
	void Cls_OnTimer (HWND hWnd, UINT id);
	void begin ();
	void check (int i, int j);
	void progress_check ();
	void top (int i, int j);
	void right (int i, int j);
	void bottom (int i, int j);
	void left (int i, int j);
	void EnableButtons (BOOL flag);
	void CountSteps();
	void WriteGamer();
	void CloseGame(HWND hWnd);
	HWND hBut[4][4];
	HWND hDlg, hStart, hSteps, hTimer;
	HMENU hMenu, hMenuPopup1;
	int count, time, steps;
	Champions gamer[3];
	BOOL changeScore;
};